#!/bin/bash
docker-compose -f insightapi/docker-compose.yml down && docker-compose -f insightapi/docker-compose.yml up -d
docker-compose -f insightauth/docker-compose.yml down && docker-compose -f insightauth/docker-compose.yml up -d
docker-compose -f insightgateway/docker-compose.yml down && docker-compose -f insightgateway/docker-compose.yml up -d
docker-compose -f insightlog/docker-compose.yml down && docker-compose -f insightlog/docker-compose.yml up -d
docker-compose -f insightcontroller/docker-compose.yml down && docker-compose -f insightcontroller/docker-compose.yml up -d
sleep 60
docker-compose -f insightroundabout/docker-compose.yml down && docker-compose -f insightroundabout/docker-compose.yml up -d
docker-compose -f insightengine/docker-compose.yml down && docker-compose -f insightengine/docker-compose.yml up -d
docker-compose -f insightengine-excutor/docker-compose-insightengine-master.yml down && docker-compose -f insightengine-excutor/docker-compose-insightengine-master.yml up -d
docker-compose -f insightengine-excutor/docker-compose-insightengine-worker.yml down && docker-compose -f insightengine-excutor/docker-compose-insightengine-worker.yml up -d
sleep 30
echo "`docker ps -a`"
